<?php
return [
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => 'article',
            'extraPatterns' => [
                'GET totals' => 'total',
            ],
            'pluralize' => false, //禁用复数形式
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => 'test',
            'extraPatterns' => [
                'GET totals' => 'total',
                //                         'GET index'  => 'index',
            ],
            'pluralize' => false, //禁用复数形式
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => 'hello',
            'pluralize' => false, //禁用复数形式
        ],
];
